﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AMail.Common.Interfaces.Data;

namespace AMail.Modules.Data.Unittests.Accessors
{
  class MailArchiveAccessor
  {
    private IMailArchive archive;
    private PrivateObject privateObject;

    public MailArchiveAccessor(IMailArchive archive)
    {
      this.archive = archive;
      this.privateObject = new PrivateObject(archive);
    }

    public IEnumerable<IMailAction> Actions
    {
      get
      {
        return (IEnumerable<IMailAction>)this.privateObject.GetField("actions");
      }
    }
  }
}
